package org.op.editor;

import org.op.FrameView;
import org.op.service.config.ConfigurationService;
import org.op.service.log.LoggerService;
import org.op.util.MessageController;

public class UndoRedoControllerImpl implements UndoRedoController {

	private EditorComponentView editorView;
	private ConfigurationService configService;
	private MessageController messageController;
	private FrameView frameView;
	private LoggerService logger;
	
	public void redoLastEdit() {
		editorView.redoLastEdit();
	}

	public void undoLastEdit() {
		editorView.undoLastEdit();
	}

	public EditorComponentView getEditorView() {
		return editorView;
	}

	public void setEditorView(EditorComponentView editorView) {
		this.editorView = editorView;
	}

	public ConfigurationService getConfigService() {
		return configService;
	}

	public void setConfigService(ConfigurationService configService) {
		this.configService = configService;
	}

	public MessageController getMessageController() {
		return messageController;
	}

	public void setMessageController(MessageController messageController) {
		this.messageController = messageController;
	}

	public FrameView getFrameView() {
		return frameView;
	}

	public void setFrameView(FrameView frameView) {
		this.frameView = frameView;
	}
	
	public LoggerService getLogger() {
		return logger;
	}

	public void setLogger(LoggerService logger) {
		this.logger = logger;
	}
}
